package org.jeecg.module.flow.meter.tcpserver;

import org.jeecg.module.flow.meter.tcpserver.tcpServer.TcpServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan("org.jeecg.module.flow.meter.tcpserver.mapper")
@EnableScheduling
public class FlowMeterTcpServerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(FlowMeterTcpServerApplication.class, args);
        run.getBean(TcpServer.class).start();
    }

}
